//
//  ZRootTabBarViewController.m
//  BestPurchase
//
//  Created by ZSMAC on 2018/10/9.
//  Copyright © 2018年 张帅. All rights reserved.
//

#import "ZRootTabBarViewController.h"
#import "ZNavRootViewController.h"
#import "HomeViewController.h"
#import "MyViewController.h"
#import "loginViewController.h"
@interface ZRootTabBarViewController ()

@end

@implementation ZRootTabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    HomeViewController * homeVC = [[HomeViewController alloc] init];
    ZNavRootViewController * HomeNav = [[ZNavRootViewController alloc] initWithRootViewController:homeVC];
    HomeNav.tabBarItem=[[UITabBarItem alloc]initWithTitle:@"首页" image:[UIImage imageNamed:@"首页"] selectedImage:[UIImage imageNamed:@"首页-选中"]];
    
    MyViewController * MyVC = [[MyViewController alloc] init];
    [MyVC getUserInfo];
    ZNavRootViewController * MyNav = [[ZNavRootViewController alloc] initWithRootViewController:MyVC];
    MyNav.tabBarItem=[[UITabBarItem alloc]initWithTitle:@"我的" image:[UIImage imageNamed:@"我的"] selectedImage:[UIImage imageNamed:@"我的-选中"]];
     self.viewControllers=@[HomeNav,MyNav,];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
